home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000308_estes@ece.ucdavis.edu_Sun Feb 13 02:16:39 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  13KB

  1. Received: from zoom.ece.ucdavis.edu (zoom.cipic.ucdavis.edu) by cs.umb.edu with SMTP id AA14962
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Sun, 13 Feb 1994 13:16:48 -0500
  3. Received: by zoom.ece.ucdavis.edu (1.37.109.8/Ultrix3.0-C/eecs 1.1)
  4.     id AA24758; Sun, 13 Feb 1994 10:16:41 -0800
  5. Message-Id: <9402131816.AA24758@zoom.ece.ucdavis.edu>
  6. To: tex-k@cs.umb.edu
  7. Cc: estes@ece.ucdavis.edu, hulse@ece.ucdavis.edu
  8. Subject: Problem getting bitmap postscript figures to appear.
  9. Date: Sun, 13 Feb 1994 10:16:39 -0800
  10. From: Robert Estes <estes@ece.ucdavis.edu>
  11.  
  12.  
  13. Actually, I can't get the grey boxes either.  Here's my file:
  14.  
  15. ----------smiley.tex-------
  16. \documentstyle{article}
  17. \input epsf
  18.  
  19. \begin{document}
  20.  
  21. Text 1.
  22.  
  23. \begin{figure}[htbp]
  24. \epsffile{smile.eps}  
  25. \end{figure}
  26.  
  27. Text 2.
  28.  
  29. \begin{figure}[htbp]
  30. \epsfbox{smile.eps}  
  31. \end{figure}
  32.  
  33. Text 3.
  34.  
  35. \end{document}
  36. ----------end of smiley.tex-----
  37.  
  38. And here are the errors I get:
  39.  
  40. -------------errors-----------
  41. xdvi: espf: "=smile.eps llx=89.436 lly=638.437 urx=189.564 ury=738.563 rwi=1001" not understood.
  42. xdvi: espf: "=smile.eps llx=89.436 lly=638.437 urx=189.564 ury=738.563
  43. rwi=1001" not understood.
  44. -----------end of errors------
  45.  
  46. I've just recompiled gs to support the bit device.  Here's the output of gs
  47. -help. 
  48.  
  49. ---------gs -help--------
  50. Ghostscript version 2.6.1 (5/28/93)
  51. Copyright (C) 1990-1993 Aladdin Enterprises, Menlo Park, CA.
  52. Usage: gs [switches] [file1.ps file2.ps ...]
  53. Available devices:
  54.     x11 cdeskjet cdj500 cdj550 cdjmono deskjet djet500 djet500c
  55.     epson eps9high laserjet lbp8 ljet2p ljet3 ljetplus paintjet
  56.     pj pjxl pjxl300 bit bmpmono bmp16 bmp256 bmp16m
  57.     gifmono gif8 pcxmono pcx16 pcx256 tiffg3 pbm pbmraw
  58.     pgm pgmraw ppm ppmraw bit
  59. Most frequently used switches: (you can use # in place of =)
  60.     @<file>              treat file like part of the command line
  61.                            (to get around DOS command line limit)
  62.     -d<name>[=<token>]   define name as token, or null if no token given
  63.     -f<file>             read this file even if its name begins with - or @
  64.     -g<width>x<height>   set width and height (`geometry'), in pixels
  65.     -I<prefix>           add prefix to search path
  66.     -q                   `quiet' mode, suppress most messages
  67.     -r<res>              set resolution, in pixels per inch
  68.     -s<name>=<string>    define name as string
  69.     -sDEVICE=<devname>   select initial device
  70.     -sOutputFile=<file>  select output file: embed %d for page #,
  71.                            - means stdout, use |command to pipe
  72. `-' alone as a file name means read from stdin non-interactively.
  73. For more complete information, please read the use.doc file.
  74. ---------end pf gs -help-----------
  75.  
  76. We're running: TeX, Version 3.1415 (C version d),
  77. and xdvik: xdvik version 1.4 (from patchlevel.h). 
  78.  
  79. Info about epsf: (from top of file)
  80.  
  81. ----------epsf.tex (header)----------
  82. %   EPSF.TEX macro file:
  83. %   Written by Tomas Rokicki of Radical Eye Software, 29 Mar 1989.
  84. %   Revised by Don Knuth, 3 Jan 1990.
  85. %   Revised by Tomas Rokicki to accept bounding boxes with no
  86. %      space after the colon, 18 Jul 1990.
  87. --------end of epsf.tex (header)------
  88.  
  89. I get exactly the same errors shown above regardless of whether I run 
  90.  
  91. xdvi -nogrey smiley,
  92. xdvi -epsfgrey smiley, or
  93. xdvi smiley.
  94.  
  95. To be complete, I guess I'll include my postscript file, which was
  96. generated by tgif.
  97.  
  98. --------smile.eps--------
  99. %!
  100. %%BoundingBox: 89.436 638.437 189.564 738.563
  101. %%Title: smile
  102. %%CreationDate: Sun Feb 13 09:58:18 1994
  103. %%Creator: Tgif-2.12 by William Chia-Wei Cheng (william@cs.UCLA.edu)
  104. %%Pages: 1 1
  105. %%DocumentFonts: Times-Roman Helvetica Courier NewCenturySchlbk Symbol
  106. %% @(#)$Header: /amnt/kona/tangram/u/william/X11/TGIF2/RCS/tgifmacro.ps,v 2.14 92/02/02 14:24:37 william Exp $
  107. %%EndComments
  108. %
  109. %    Due to bugs in Transcript, the 'PS-Adobe-' stuff is omitted from line 1
  110. %
  111. %%BeginSetup
  112.  
  113. /tgifellipsedict 6 dict def
  114. tgifellipsedict /mtrx matrix put
  115.  
  116. /tgifellipse
  117.  { tgifellipsedict begin
  118.       /yrad exch def
  119.       /xrad exch def
  120.       /y exch def
  121.       /x exch def
  122.       /savematrix mtrx currentmatrix def
  123.       x y translate
  124.       xrad yrad scale
  125.       0 0 1 0 360 arc
  126.       savematrix setmatrix
  127.    end
  128.  } def
  129.  
  130. /arrowtipdict 8 dict def
  131. arrowtipdict /mtrx matrix put
  132.  
  133. /arrowtip
  134.  { arrowtipdict begin
  135.       /dy exch def
  136.       /dx exch def
  137.       /h exch def
  138.       /w exch def
  139.       /y exch def
  140.       /x exch def
  141.       /savematrix mtrx currentmatrix def
  142.       x y translate
  143.       dy dx atan rotate
  144.       0 0 moveto
  145.       w neg h lineto
  146.       w neg h neg lineto
  147.       savematrix setmatrix
  148.    end
  149.  } def
  150.  
  151. /tgifarcdict 8 dict def
  152. tgifarcdict /mtrx matrix put
  153.  
  154. /tgifarcn
  155.  { tgifarcdict begin
  156.       /endangle exch def
  157.       /startangle exch def
  158.       /yrad exch def
  159.       /xrad exch def
  160.       /y exch def
  161.       /x exch def
  162.       /savematrix mtrx currentmatrix def
  163.       x y translate
  164.       xrad yrad scale
  165.       0 0 1 startangle endangle arc
  166.       savematrix setmatrix
  167.    end
  168.  } def
  169.  
  170. /tgifarc
  171.  { tgifarcdict begin
  172.       /endangle exch def
  173.       /startangle exch def
  174.       /yrad exch def
  175.       /xrad exch def
  176.       /y exch def
  177.       /x exch def
  178.       /savematrix mtrx currentmatrix def
  179.       x y translate
  180.       xrad yrad scale
  181.       0 0 1 startangle endangle arcn
  182.       savematrix setmatrix
  183.    end
  184.  } def
  185.  
  186. /setuserscreendict 22 dict def
  187. setuserscreendict begin
  188.    /tempctm matrix def
  189.    /temprot matrix def
  190.    /tempscale matrix def
  191.  
  192.    /concatprocs
  193.     { /proc2 exch cvlit def
  194.       /proc1 exch cvlit def
  195.       /newproc proc1 length proc2 length add array def
  196.       newproc 0 proc1 putinterval
  197.       newproc proc1 length proc2 putinterval
  198.       newproc cvx
  199.     } def
  200.    /resmatrix matrix def
  201.    /findresolution
  202.     { 72 0 resmatrix defaultmatrix dtransform
  203.       /yres exch def /xres exch def
  204.       xres dup mul yres dup mul add sqrt
  205.     } def
  206. end
  207.  
  208. /setuserscreen
  209.  { setuserscreendict begin
  210.       /spotfunction exch def
  211.       /screenangle exch def
  212.       /cellsize exch def
  213.  
  214.       /m tempctm currentmatrix def
  215.       /rm screenangle temprot rotate def
  216.       /sm cellsize dup tempscale scale def
  217.  
  218.       sm rm m m concatmatrix m concatmatrix pop
  219.  
  220.       1 0 m dtransform /y1 exch def /x1 exch def
  221.  
  222.       /veclength x1 dup mul y1 dup mul add sqrt def
  223.       /frequency findresolution veclength div def
  224.  
  225.       /newscreenangle y1 x1 atan def
  226.  
  227.       m 2 get m 1 get mul m 0 get m 3 get mul sub 0 gt
  228.  
  229.       {{neg} /spotfunction load concatprocs
  230.          /spotfunction exch def
  231.       } if
  232.  
  233.       frequency newscreenangle /spotfunction load setscreen
  234.    end
  235.  } def
  236.  
  237. /setpatterndict 18 dict def
  238. setpatterndict begin
  239.    /bitison
  240.     { /ybit exch def /xbit exch def
  241.       /bytevalue bstring ybit bwidth mul xbit 8 idiv add get def
  242.  
  243.       /mask 1 7 xbit 8 mod sub bitshift def
  244.       bytevalue mask and 0 ne
  245.     } def
  246. end
  247.  
  248. /bitpatternspotfunction
  249.  { setpatterndict begin
  250.       /y exch def /x exch def
  251.  
  252.       /xindex x 1 add 2 div bpside mul cvi def
  253.       /yindex y 1 add 2 div bpside mul cvi def
  254.  
  255.       xindex yindex bitison
  256.        { /onbits onbits 1 add def 1 }
  257.        { /offbits offbits 1 add def 0 }
  258.        ifelse
  259.    end
  260.  } def
  261.  
  262. /setpattern
  263.  { setpatterndict begin
  264.       /cellsz exch def
  265.       /angle exch def
  266.       /bwidth exch def
  267.       /bpside exch def
  268.       /bstring exch def
  269.  
  270.       /onbits 0 def /offbits 0 def
  271.       cellsz angle /bitpatternspotfunction load setuserscreen
  272.       {} settransfer
  273.       offbits offbits onbits add div setgray
  274.    end
  275.  } def
  276.  
  277. /inch {72 mul} def
  278.  
  279. /xpmdict 4 dict def
  280. /bwpicstr 1 string def
  281. /colorpicstr 3 string def
  282.  
  283. /setpixels { xpmdict begin /pixels exch def end } def
  284.  
  285. /bwspot
  286.  { xpmdict begin
  287.       /index exch def
  288.       bwpicstr 0
  289.       pixels index 3 mul 3 getinterval aload pop
  290.       255 mul .114 mul exch 255 mul .587 mul add exch 255 mul .299 mul add
  291.       cvi put
  292.       bwpicstr
  293.    end
  294.  } def
  295.  
  296. /colorspot
  297.  { xpmdict begin
  298.       /index exch def
  299.       pixels index 3 mul 3 getinterval aload pop
  300.       255 mul cvi colorpicstr 2 3 -1 roll put
  301.       255 mul cvi colorpicstr 1 3 -1 roll put
  302.       255 mul cvi colorpicstr 0 3 -1 roll put
  303.       colorpicstr
  304.    end
  305.  } def
  306.  
  307. /patdict 10 dict def
  308.  
  309. /patbyte
  310.  { currentdict /retstr get exch
  311.    pat i cellsz mod get put
  312.  } def
  313.  
  314. /patproc
  315.  { 0 1 widthlim {patbyte} for retstr
  316.    /i i 1 add def
  317.  } def
  318.  
  319. /patfill
  320.  { patdict begin
  321.       /h exch def
  322.       /w exch def
  323.       /lty exch def
  324.       /ltx exch def
  325.       /cellsz exch def
  326.       /pat exch def
  327.  
  328.       /widthlim w cellsz div cvi 1 sub def
  329.       /retstr widthlim 1 add string def
  330.       /i 0 def
  331.  
  332.       ltx lty translate
  333.       w h true [1 0 0 1 0 0] {patproc} imagemask
  334.       ltx neg lty neg translate
  335.    end
  336.  } def
  337.  
  338. /pat1 <ffffffffffffffff> def
  339. /pat2 <0000000000000000> def
  340. /pat3 <8000000008000000> def
  341. /pat4 <8800000022000000> def
  342. /pat5 <8800220088002200> def
  343. /pat6 <8822882288228822> def
  344. /pat7 <aa55aa55aa55aa55> def
  345. /pat8 <77dd77dd77dd77dd> def
  346. /pat9 <77ffddff77ffddff> def
  347. /pat10 <77ffffff77ffffff> def
  348. /pat11 <7fffffff7fffffff> def
  349. /pat12 <8040200002040800> def
  350. /pat13 <40a00000040a0000> def
  351. /pat14 <ff888888ff888888> def
  352. /pat15 <ff808080ff080808> def
  353. /pat16 <f87422478f172271> def
  354. /pat17 <038448300c020101> def
  355. /pat18 <081c22c180010204> def
  356. /pat19 <8080413e080814e3> def
  357. /pat20 <8040201008040201> def
  358. /pat21 <8844221188442211> def
  359. /pat22 <77bbddee77bbddee> def
  360. /pat23 <c1e070381c0e0783> def
  361. /pat24 <7fbfdfeff7fbfdfe> def
  362. /pat25 <3e1f8fc7e3f1f87c> def
  363. /pat26 <0102040810204080> def
  364. /pat27 <1122448811224488> def
  365. /pat28 <eeddbb77eeddbb77> def
  366. /pat29 <83070e1c3870e0c1> def
  367. /pat30 <fefdfbf7efdfbf7f> def
  368. /pat31 <7cf8f1e3c78f1f3e> def
  369.  
  370. /centertext { dup stringwidth pop 2 div neg 0 rmoveto } def
  371.  
  372. /righttext { dup stringwidth pop neg 0 rmoveto } def
  373.  
  374. /reencsmalldict 12 dict def
  375. /ReEncodeSmall
  376.  { reencsmalldict begin
  377.       /newcodesandnames exch def
  378.       /newfontname exch def
  379.       /basefontname exch def
  380.  
  381.       /basefontdict basefontname findfont def
  382.       /newfont basefontdict maxlength dict def
  383.  
  384.       basefontdict
  385.       { exch dup /FID ne
  386.          { dup /Encoding eq
  387.             { exch dup length array copy newfont 3 1 roll put }
  388.             { exch newfont 3 1 roll put }
  389.             ifelse
  390.          }
  391.          { pop pop }
  392.          ifelse
  393.       }
  394.       forall
  395.  
  396.       newfont /FontName newfontname put
  397.       newcodesandnames aload pop
  398.  
  399.       newcodesandnames length 2 idiv
  400.       { newfont /Encoding get 3 1 roll put}
  401.       repeat
  402.  
  403.       newfontname newfont definefont pop
  404.    end
  405.  } def
  406.  
  407. /tgifgray { 8 1 0 72 300 32 div div setpattern } bind def
  408.  
  409. /boxdict 6 dict def
  410. /tgifboxstroke
  411.  { boxdict begin
  412.       /pat def /w def /y2 exch def /x2 exch def /y1 exch def /x1 exch def
  413.       1.415 setmiterlimit
  414.       w 1 eq { w setlinewidth } if
  415.       pat pat1 ne pat pat2 ne and { gsave pat tgifgray } if
  416.       newpath x1 y1 moveto x2 y1 lineto x2 y2 lineto x1 y2 lineto closepath
  417.       pat pat2 eq { 1 setgray stroke 0 setgray } { stroke } ifelse
  418.       pat pat1 ne pat pat2 ne and { grestore } if
  419.       w 1 eq { 1 setlinewidth } if
  420.       1 setmiterlimit
  421.    end
  422.  } def
  423. /tgifboxfill
  424.  { boxdict begin
  425.       /pat def /y2 exch def /x2 exch def /y1 exch def /x1 exch def
  426.       pat pat1 ne pat pat2 ne and { gsave pat tgifgray } if
  427.       newpath x1 y1 moveto x2 y1 lineto x2 y2 lineto x1 y2 lineto closepath
  428.       pat pat2 eq { 1 setgray fill 0 setgray } { fill } ifelse
  429.       pat pat1 ne pat pat2 ne and { grestore } if
  430.    end
  431.  } def
  432. %%EndSetup
  433. %%Page: 1 1
  434.  
  435. 1 setmiterlimit
  436. 1 setlinewidth
  437.  
  438. 72 0 mul 72 11 mul translate
  439. 72 128 div 100 mul 100 div dup neg scale
  440.  
  441. % OVAL
  442. gsave
  443.    2 setlinewidth
  444.    newpath 248 184 88 88 tgifellipse stroke
  445.    1 setlinewidth
  446. grestore
  447.  
  448. % OVAL
  449. gsave
  450.    2 setlinewidth
  451.    newpath 216 160 8 16 tgifellipse stroke
  452.    1 setlinewidth
  453. grestore
  454.  
  455. % OVAL
  456. gsave
  457.    2 setlinewidth
  458.    newpath 280 160 8 16 tgifellipse stroke
  459.    1 setlinewidth
  460. grestore
  461.  
  462. % ARC
  463. gsave
  464.    2 setlinewidth
  465.    newpath
  466.       240 176 57 57 123 33 tgifarc
  467.    stroke
  468.    1 setlinewidth
  469. grestore
  470.  
  471. %%Trailer
  472. %MatchingCreationDate: Sun Feb 13 09:58:18 1994
  473. %%EOF
  474. ---------------end of smile.eps--------
  475.  
  476. Any suggestions would be greatly appreciated.  I an anxious to get the
  477. postscript preview working.
  478.  
  479. -R
  480. --
  481. Robert estes@cipic.ucdavis.edu
  482.  
  483. Center for Image Processing and Integrated Computing (CIPIC)
  484. University of California, Davis  95616
  485. Office: 2345 Academic Surge Building   Phone: (916) 752-8224
  486.  
  487.  
  488.